package com.lagou.task12;

public class StringManyMethodTest {
    public static void main(String[] args) {
        String s1  = new String("     let me Give you some Color to See  ");
        //实现各种方法的测试
        System.out.println(s1.contains("you"));
        System.out.println(s1.contains("You"));

        System.out.println("----------------------------");
        System.out.println(s1.toLowerCase());
        System.out.println(s1.toUpperCase());

        System.out.println("----------------------------");
        //去粗两端的空格
        System.out.println(s1.trim());

        System.out.println("----------------------------");
        System.out.println(s1.startsWith("let"));
        System.out.println(s1.startsWith(" "));
        System.out.println(s1.startsWith("let",5));

        System.out.println(s1.endsWith("See"));
    }
}
